package com.xiaoshuidi.cloud.module.rooms.controller.admin.roomhouse.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author hans.zhang
 */
@Data
@Schema(description = "房间信息")
public class NoConcentratedRoomInfoDto {

    @Schema(description = "房间id")
    private Long roomHouseId;
    @NotEmpty(message = "房间名不能为空")
    private String roomHouseNo;
    @Schema(description = "房间类型")
    @NotEmpty(message = "房间类型不能为空")
    private String roomType;
    @Schema(description = "面积")
    @NotNull(message = "面积不能为空")
    private Double space;
    @Schema(description = "朝向")
    @NotEmpty(message = "朝向不能为空")
    private String toward;
    @Schema(description = "可住人数")
    @NotNull(message = "可住人数不能为空")
    @Min(value = 0,message = "可住人数不能低于0人")
    @Max(value = 2,message = "可住人数不能超过2人")
    private Integer peopleNum;
}
